package request

type AddHose struct {
	Id        uint    `json:"id" form:"id"`
	Title     string  `json:"title" form:"title" binding:"required"`
	Price     float64 `json:"price" form:"price" binding:"required"`
	Area      uint    `json:"area" form:"area" binding:"required"`
	City      string  `json:"city" form:"city" binding:"required"`
	Address   string  `json:"address" form:"address" binding:"required"`
	Community string  `json:"community" form:"community"`
	ImageUrl  string  `json:"image_url" form:"image_url"`
	VideoUrl  string  `json:"video_url" form:"video_url"`
	HType     uint    `json:"h_type" form:"h_type" binding:"required"`
}

type PageHouse struct {
	Id       uint   `json:"id" form:"id"`
	Title    string `json:"title" form:"title"`
	Page     uint   `json:"page" form:"page" `
	PageSize uint   `json:"page_size" form:"page_size"`
}

type Detail struct {
	Id uint `json:"id" form:"id" binding:"required"`
}

type UpdateHouseType struct {
	Id uint `json:"id" form:"id" binding:"required"`
}

type UpdateHousePrice struct {
	Id    uint    `json:"id" form:"id" binding:"required"`
	Price float64 `json:"price" form:"price" binding:"required"`
}
